<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0" id="prpInfo"
	cellspacing="1">
	<!-- 
	<tr>
		<td colspan="6" class="t_bar"><span>基本信息</span></td>
	</tr>
	 -->
	<tr>
		<td colspan="6" class="t_bar"><span>项目技术情况</span></td>
	</tr>
	<tr>
		<td  align="right"><span class="color_red">*</span>项目活动类型：</td>
		<td colspan="2">
			<x:out select="$xmlData/data/proposal/basic/activity_type_name" />
		</td>
		<td  align="right"><span class="color_red">*</span>项目创新类型：</td>
		<td colspan="2">
			<x:out select="$xmlData/data/proposal/basic/ideas_type_name" />
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>项目主要优势：</td>
		<td colspan="5">
			<c:set var ="tmp"><x:out select="$xmlData/data/proposal/basic/advant_name" /></c:set>
			<c:set var ="tmp" value="${fn:replace(tmp,',','，')}"></c:set>
			${tmp }
		</td>
	</tr>
	<tr>
		<td colspan="6" class="t_bar"><span>预期成效</span></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>预期成果：</td>
		<td colspan="5">
			<c:set var ="tmp"><x:out select="$xmlData/data/proposal/basic/result_name" /></c:set>
			<c:set var ="tmp" value="${fn:replace(tmp,',','，')}"></c:set>
			${tmp }
		</td>
	</tr>
</table>

<div class="t_bar">主要研究开发内容、要达到的主要技术、经济指标以及将提供的研究开发成果及形式</div>
    <table class="t_css" width="100%" border="0" cellpadding="0"
	   cellspacing="1">
       <tr class="li_2">
          <td align="left"><strong>1、主要研究开发内容</strong></td>
       </tr>
       <tr class="li_1">
          <td>
	         <x:out select="$xmlData/data/proposal/goal/summary1"/>
		  </td>
       </tr>
       <tr class="li_2">
          <td align="left"><strong>2、要达到的主要技术、经济指标</strong></td>
       </tr>
       <tr class="li_1">
          <td>
			<x:out select="$xmlData/data/proposal/goal/summary2"/>
		  </td>
       </tr>
       <tr class="li_2">
          <td align="left"><strong>3、将提供的研究开发成果及形式</strong></td>
       </tr>
       <tr class="li_1">
          <td>
			<x:out select="$xmlData/data/proposal/goal/summary3"/>
		  </td>
       </tr>
</table>

<script type="text/javascript">
$(function(){
	$("#prpInfo tr:even").addClass("li_1");
    $("#prpInfo tr:odd").addClass("li_2");
});

function updateCheckVal(subid,totalid){
	var sub = $("#"+subid);
	var obj_total_value = $("#"+totalid+"_value");
	var obj_total_label = $("#"+totalid+"_label");
	var sub_value= sub.val();
	var sub_label= sub.attr("label");
	var total_value= " "+$.trim(obj_total_value.val())+" ";
	var total_label= " "+$.trim(obj_total_label.val())+" ";
	if(sub.is(":checkbox")){
		if(sub.is(":checked")){
			if(total_value.indexOf(" "+sub_value+" ")==-1){
				obj_total_value.val($.trim(total_value)+" "+sub_value+" ");
				obj_total_label.val($.trim(total_label)+" "+sub_label+" ");
			}
		}else{
			if(total_value.indexOf(" "+sub_value+" ")!=-1){
				var value = total_value.replace(" "+sub_value+" ","");
				var label = total_label.replace(" "+sub_label+" ","");
				obj_total_value.val($.trim(value));
				obj_total_label.val($.trim(label));
			}
		}
	}else if(sub.is(":radio")){
		if(sub.is(":checked")){
				obj_total_value.val(sub_value);
				obj_total_label.val(sub_label);
		}
	}
	
}
</script>